package cn.iotab.iotkit.transport.mqtt;

import cn.iotab.iotkit.transport.api.driver.TransportDriverService;
import cn.iotab.iotkit.transport.api.driver.context.TransportContext;
import cn.iotab.iotkit.transport.mqtt.ssl.MqttSslHandlerProvider;
import lombok.Builder;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;

/**
 * Created by ashvayka on 04.10.18.
 */
@Slf4j
@Getter
public class MqttTransportContext extends TransportContext {

    @Builder
    public MqttTransportContext(TransportDriverService transportDriverService, MqttSslHandlerProvider sslHandlerProvider, boolean skipValidityCheckForClientCert) {
        super(transportDriverService);
        this.sslHandlerProvider = sslHandlerProvider;
        this.skipValidityCheckForClientCert = skipValidityCheckForClientCert;
    }

    private final MqttSslHandlerProvider sslHandlerProvider;

    private final boolean skipValidityCheckForClientCert;

}
